# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-feedparser
_pkgname=feedparser
pkgver=5.2.1
pkgrel=10
pkgdesc='Pythonic argument parser, that will make you smile.versal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds.'
url='https://pypi.org/project/feedparser/#files'
arch=('any')
license=('custom:unknown')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.bz2")
sha512sums=('f0ff50464dced40be46f7810791938a2a384edbdf71dcb58edd9342042a4e80aa2140b6f604c4cdbca8a8c70d0f6fdc5a0c1aa37994d2893f0bb0038633ac9b7')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

